package com.hudson.common.domain.meta;

/**
 * @Author: 渔小鲤
 * @DateTime: 2025/7/18 0:08
 **/
public class MsgIdInfo {

    private String ipv4Address;
    private int port;
    private long offset;
    private int msgSize;

    public MsgIdInfo(String ipv4Address, int port, long offset, int msgSize) {
        this.ipv4Address = ipv4Address;
        this.port = port;
        this.offset = offset;
        this.msgSize = msgSize;
    }

    public String getIpv4Address() {
        return ipv4Address;
    }

    public void setIpv4Address(String ipv4Address) {
        this.ipv4Address = ipv4Address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public long getOffset() {
        return offset;
    }

    public void setOffset(long offset) {
        this.offset = offset;
    }

    public int getMsgSize() {
        return msgSize;
    }

    public void setMsgSize(int msgSize) {
        this.msgSize = msgSize;
    }

    @Override
    public String toString() {
        return "MsgIdInfo{" +
                "ipv4Address='" + ipv4Address + '\'' +
                ", port=" + port +
                ", offset=" + offset +
                ", msgSize=" + msgSize +
                '}';
    }
}
